#ifndef __DATA_STATES_H__
#define  __DATA_STATES_H__
#include  <unistd.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "DComplier.h"

#define PATH_LENGTH 256
typedef struct StructServeState
{
    struct sockaddr_in mServeAddrIn;
    int mServeSocket;
    int mCanConnected;
    int mIsOpened;//服务端是否开启
}SServeState,*pSServeState;

typedef struct StructUserStates
{
    char mUserName[32];
    char mPassword[32];
    int mLevel;//权限等级
    int mIsLogined;//是否已经登录成功
}SUserStates,*pSUserStates;

//客户端状态
typedef struct StructClientStates
{
    int mIsWorking;
    char mLocalDir[PATH_LENGTH];
    char mNetDir[PATH_LENGTH];
}SClientStates,*pSClientStates;

typedef struct StructStates
{
      SServeState mServeStates;
      SUserStates mUserStates;
      SClientStates mClientStates;
}SStates,*pSStates;
#endif // __DATA_STATES_H__

